package grape.attend.service.vacation.po;

import grape.common.service.po.NormalBasePo;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.Version;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 假期表
 * </p>
 *
 * @author yangwei
 * @since 2020-05-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("attend_vacation")
public class Vacation extends NormalBasePo<Vacation> {

    private static final long serialVersionUID = 1L;

    /**
     * 假期编码
     */
    public enum VacationCode{
        annual_leave,     // 年假
        maternity_leave,  // 产假
        parental_leave,   // 陪产假
        marriage_leave,   // 婚假
        funeral_leave,    // 丧假
        personal_leave,   // 事假
        vacation_leave,   // 调休假
        sick_leave,       // 病假
    }
    /**
     * 编码
     */
    private String code;
    /**
     * 名称
     */
    private String name;

    /**
     * 请假单位，字典id
     */
    private String leaveUnitDictId;

    /**
     * 计算请假时长方式，字典id
     */
    private String leaveCalTypeDictId;

    /**
     * 备注
     */
    private String remark;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
